Skip to content

Commit 5005f1d

Browse files
committed
Update entries-tagger.ps1
1 parent 312e3a0 commit 5005f1d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

entries-tagger.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ function Tag-Entry {
4545
$text -replace '^\s+' -replace '\s+$' -replace ' {2,}', ' ' `
4646
-replace '(?<=\()([\dd \+\-×x\*÷\/\*]+\d)(?=\))', '{@damage $1}' `
4747
-replace '\b(\d+d[\dd \+\-×x\*÷/]*\d)(?=( (\w){4,11})? damage\b)', '{@damage $1}' `
48-
-replace '(?<=\brolls? (a )?)(d\d+)\b(?![{|])', '{@dice $2}' `
49-
-replace '(?<!@d(amage|ice)) (\d+d[\dd \+\-×x\*÷/]*\d)\b(?![{|])', ' {@dice $2}' `
48+
-replace '(?<=\brolls? (a )?)(d\d+)\b(?![}|])', '{@dice $2}' `
49+
-replace '(?<!@d(amage|ice)) (\d+d[\dd \+\-×x\*÷/]*\d)\b(?![}|])', ' {@dice $2}' `
5050
-creplace '(?<!\w)\+?(\-?\d)(?= (to hit|modifier))', '{@hit $1}' `
51-
-creplace '\bDC ?(\d+)\b(?![{|])', '{@dc $1}' `
51+
-creplace '\bDC ?(\d+)\b(?![}|])', '{@dc $1}' `
5252
-replace "(?<=\b(be(comes?)?|is( ?n[o']t)?|while|a(nd?|lso)?|or|th(e|at)) )(blinded|charmed|deafened|frightened|grappled|in(capacitated|nvisible)|p(aralyz|etrifi|oison)ed|restrained|stunned|unconscious)\b", '{@condition $6}' `
5353
-replace "(?<=\b(knocked|pushed|shoved|becomes?|falls?|while|lands?) )(prone|unconscious)\b", '{@condition $2}' `
5454
-replace "(?<=levels? of )exhaustion\b", "{@condition exhaustion}" `
5555
-creplace '(?<=\()(A(thletics|crobatics|rcana|nimal Handling)|Per(ception|formance|suasion)|S(leight of Hand|tealth|urvival)|In(sight|vestigation|timidation)|Nature|Religion|Medicine|History|Deception)(?=\))', '{@skill $1}' `
5656
-creplace '\b(A(thletics|crobatics|rcana|nimal Handling)|Per(ception|formance|suasion)|S(leight of Hand|tealth|urvival)|In(sight|vestigation|timidation)|Nature|Religion|Medicine|History|Deception)(?= (check|modifier|bonus|roll|score))', '{@skill $1}' `
57-
-replace '(?<!cast (the )?)\b(darkvision|blindsight|tr(emorsense|uesight))\b(?!( spell|[{|]))', '{@sense $2}' `
58-
-creplace "\b(Attack(?! roll)|Cast a Spell|D(ash|isengage|odge)|H(elp|ide)|Ready|Search|Use an Object)\b(?![{|])", '{@action $1}' `
59-
-replace '\bopportunity attack\b(?![{|])', '{@action opportunity attack}' `
57+
-replace '(?<!cast (the )?)\b(darkvision|blindsight|tr(emorsense|uesight))\b(?!( spell|[}|]))', '{@sense $2}' `
58+
-creplace "\b(Attack(?! roll)|Cast a Spell|D(ash|isengage|odge)|H(elp|ide)|Ready|Search|Use an Object)\b(?![}|])", '{@action $1}' `
59+
-replace '\bopportunity attack\b(?![}|])', '{@action opportunity attack}' `
6060
-replace '\b(opportunity attacks|attacks? of opportunity)\b', '{@action opportunity attack||$1}' `
6161
-replace '\b(\d\d?) percent chance\b', '{@chance $1} chance'
6262
)

0 commit comments

Comments
 (0)