We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b596706 + 0d61dae commit 8568365Copy full SHA for 8568365
modules/isPrefixedProperty.js
@@ -2,5 +2,5 @@
2
const regex = /^(Webkit|Moz|O|ms)/
3
4
export default function isPrefixedProperty(property: string): boolean {
5
- return property.match(regex) !== null
+ return regex.test(property)
6
}
modules/isPrefixedValue.js
const regex = /-webkit-|-moz-|-ms-/
export default function isPrefixedValue(value: any): boolean {
- return typeof value === 'string' && value.match(regex) !== null
+ return typeof value === 'string' && regex.test(value)
0 commit comments