1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-17 03:31:52 +00:00

replace spaces with underscore of tag

This commit is contained in:
Dick Choi
2016-09-14 12:36:18 +09:00
parent 0646c4f8bd
commit 33fe4f5295

View File

@@ -57,7 +57,7 @@ class TagSelect extends React.Component {
submitTag () { submitTag () {
let { value } = this.props let { value } = this.props
let newTag = this.refs.newTag.value.trim() let newTag = this.refs.newTag.value.trim().replace(/ +/g, '_')
if (newTag.length <= 0) { if (newTag.length <= 0) {
this.setState({ this.setState({