Skip to content

Commit c7f5e67

Browse files
committed
chore: update demo
1 parent fa252be commit c7f5e67

File tree

1 file changed

+1
-1
lines changed
  • packages/rc-ui/src/condition-input/demo

1 file changed

+1
-1
lines changed

packages/rc-ui/src/condition-input/demo/Base.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const App = () => {
1414
</ConditionInput>
1515

1616
<p>多个正则(前后不允许空格且不能能输入数字)</p>
17-
<ConditionInput regexes={['\\s', /\d/g]} onChange={onChange} >
17+
<ConditionInput regexes={[/(^\s*)|(\s*$)/g, /\d/g]} onChange={onChange} >
1818
<input type="text" />
1919
</ConditionInput>
2020

0 commit comments

Comments
 (0)