Skip to content

Commit 179cad1

Browse files
fix(wizard/foundation/limits): abstractDataAttributeName (openscd#573)
* fix(wizard/foundation/limits): abstractDataAttributeName * test(wizards/abstractdabda): snapshot update * test(wizards/da,bda): fix snapshots
1 parent 6fe49d2 commit 179cad1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/wizards/foundation/limits.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const patterns = {
2424
lnClass: '[A-Z]{4,4}',
2525
tRestrName1stL: '[a-z][0-9A-Za-z]*',
2626
abstractDataAttributeName:
27-
'((T)|(Test)|(Check)|(SIUnit)|(Open)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)',
27+
'((T)|(Test)|(Check)|(SIUnit)|(Oper)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)',
2828
cdc:
2929
'(SPS)|(DPS)|(INS)|(ENS)|(ACT)|(ACD)|(SEC)|(BCR)|(HST)|(VSS)|(MV)|(CMV)|(SAV)|' +
3030
'(WYE)|(DEL)|(SEQ)|(HMV)|(HWYE)|(HDEL)|(SPC)|(DPC)|(INC)|(ENC)|(BSC)|(ISC)|(APC)|(BAC)|' +

test/integration/wizards/__snapshots__/bda-wizarding-editing.test.snap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ snapshots["BDA wizarding editing integration defines a editBDaWizard to edit an
2020
helper="[scl.name]"
2121
label="name"
2222
maxlength="60"
23-
pattern="((T)|(Test)|(Check)|(SIUnit)|(Open)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)"
23+
pattern="((T)|(Test)|(Check)|(SIUnit)|(Oper)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)"
2424
required=""
2525
>
2626
>
@@ -624,7 +624,7 @@ snapshots["BDA wizarding editing integration defines a createBDaWizard to create
624624
helper="[scl.name]"
625625
label="name"
626626
maxlength="60"
627-
pattern="((T)|(Test)|(Check)|(SIUnit)|(Open)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)"
627+
pattern="((T)|(Test)|(Check)|(SIUnit)|(Oper)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)"
628628
required=""
629629
>
630630
>

test/integration/wizards/__snapshots__/da-wizarding-editing.test.snap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ snapshots["DA wizarding editing integration defines a editDaWizard to edit an ex
2020
helper="[scl.name]"
2121
label="name"
2222
maxlength="60"
23-
pattern="((T)|(Test)|(Check)|(SIUnit)|(Open)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)"
23+
pattern="((T)|(Test)|(Check)|(SIUnit)|(Oper)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)"
2424
required=""
2525
>
2626
>
@@ -813,7 +813,7 @@ snapshots["DA wizarding editing integration defines a createDaWizard to create a
813813
helper="[scl.name]"
814814
label="name"
815815
maxlength="60"
816-
pattern="((T)|(Test)|(Check)|(SIUnit)|(Open)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)"
816+
pattern="((T)|(Test)|(Check)|(SIUnit)|(Oper)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)"
817817
required=""
818818
>
819819
>

test/unit/wizards/__snapshots__/abstractda.test.snap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ snapshots["abstractda wizards renderWizard looks like the latest snapshot"] =
1313
helper="[scl.name]"
1414
label="name"
1515
maxlength="60"
16-
pattern="((T)|(Test)|(Check)|(SIUnit)|(Open)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)"
16+
pattern="((T)|(Test)|(Check)|(SIUnit)|(Oper)|(SBO)|(SBOw)|(Cancel)|[a-z][0-9A-Za-z]*)"
1717
required=""
1818
>
1919
>

0 commit comments

Comments
 (0)