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