mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
replace spaces with underscore of tag
This commit is contained in:
@@ -57,7 +57,7 @@ class TagSelect extends React.Component {
|
||||
|
||||
submitTag () {
|
||||
let { value } = this.props
|
||||
let newTag = this.refs.newTag.value.trim()
|
||||
let newTag = this.refs.newTag.value.trim().replace(/ +/g, '_')
|
||||
|
||||
if (newTag.length <= 0) {
|
||||
this.setState({
|
||||
|
||||
Reference in New Issue
Block a user