packages/remark-stringify/lib/escape.js
function alignment(value, index) {
  var start = value.lastIndexOf(lineFeed, index)
  var end = value.indexOf(lineFeed, index)
  var char

  end = end === -1 ? value.length : end

  while (++start < end) {
    char = value.charAt(start)

    if (
      char !== colon &&
      char !== dash &&
      char !== space &&
      char !== verticalBar
    ) {
      return false
    }
  }

  return true
}
function alignment(value, index) {
  var start = value.lastIndexOf(lineFeed, index)
  var end = value.indexOf(lineFeed, index)
  var char

  end = end === -1 ? value.length : end

  while (++start < end) {
    char = value.charAt(start)

    if (
      char !== colon &&
      char !== dash &&
      char !== space &&
      char !== verticalBar
    ) {
      return false
    }
  }

  return true
}
function alignment ( value , index ) { var start = value . lastIndexOf ( lineFeed , index ) var end = value . indexOf ( lineFeed , index ) var char end = end === - 1 ? value . length : end while ( ++ start < end ) { char = value . charAt ( start ) if ( char !== colon && char !== dash && char !== space && char !== verticalBar ) { return false } } return true }
Check if `index` in `value` is inside an alignment row.
Check if index in value is inside an alignment row .