Update projecte regex to match on alphanumeric values with hyphens
This commit is contained in:
parent
d8398fca5f
commit
1533c2261f
@ -1,4 +1,4 @@
|
||||
const projectRegex = /\[(\d+)\]/
|
||||
const projectRegex = /\[([\w-]+)\]/
|
||||
|
||||
export default {
|
||||
asana: {
|
||||
@ -22,7 +22,7 @@ export default {
|
||||
const match = document
|
||||
.querySelector(".ProjectPageHeader-projectName")
|
||||
?.textContent?.trim()
|
||||
?.match(/^\[(\w+)\]/)
|
||||
?.match(projectRegex)
|
||||
return match && match[1]
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user