package com.todoist.pojo

import java.util.regex.Pattern

object Sanitizers {
    const val PROJECT_NAME_INVALID_CHARACTERS = "#\""
    const val SECTION_NAME_INVALID_CHARACTERS = "/\""
    const val LABEL_NAME_INVALID_CHARACTERS = "@\"\\s"

    @JvmField
    val PROJECT_NAME_INVALID_PATTERN = Pattern.compile("[$PROJECT_NAME_INVALID_CHARACTERS]+")

    @JvmField
    val SECTION_NAME_INVALID_PATTERN = Pattern.compile("[$SECTION_NAME_INVALID_CHARACTERS]+")

    @JvmField
    val LABEL_NAME_INVALID_PATTERN = Pattern.compile("[$LABEL_NAME_INVALID_CHARACTERS]+")

    const val REPLACEMENT = "_"
}

package com.todoist.pojo

import java.util.regex.Pattern

object Sanitizers {
    const val PROJECT_NAME_INVALID_CHARACTERS = "#\"()|&!,"
    const val SECTION_NAME_INVALID_CHARACTERS = "/\"()|&!,"
    const val LABEL_NAME_INVALID_CHARACTERS = "@\"\\s()|&!,"

    @JvmField
    val PROJECT_NAME_INVALID_PATTERN: Pattern = Pattern.compile("[$PROJECT_NAME_INVALID_CHARACTERS]+")

    @JvmField
    val SECTION_NAME_INVALID_PATTERN: Pattern = Pattern.compile("[$SECTION_NAME_INVALID_CHARACTERS]+")

    @JvmField
    val LABEL_NAME_INVALID_PATTERN: Pattern = Pattern.compile("[$LABEL_NAME_INVALID_CHARACTERS]+")

    const val REPLACEMENT = "_"
}

Update name sanitizers and remove lint warnings
Update name sanitizers and remove lint warnings

Spec update PR: https://github.com/Doist/doist-documentation/pull/758

Doist/TodoistModels,Doist/TodoistPojos