0.0.2 • Published 6 years ago
ninja-regex v0.0.2
Quick start
Install
npm install ninja-regex -S
Use
import { njCn } from 'ninja-regex'
njCn('紫罗兰') // => true
Use in Vue
<template>
<div>
<input type="text" v-model="inputVal"/>
<div v-if="njCn(inputVal)" v-text="inputVal"></div>
</div>
</template>
<script>
import { njCn } from 'ninja-regex'
export default {
data () {
return {
njCn,
inputVal: ''
}
}
}
</script>