Skip to content

Commit

Permalink
fix: aceita colar art. 1º-1 (simbolo de ordinal antes do sufixo)
Browse files Browse the repository at this point in the history
refs #840
  • Loading branch information
fragomeni committed Mar 4, 2024
1 parent 2cc4a4f commit ef459c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redux/elemento/util/colarUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ export const ajustaHtmlParaColagem = (htmlInicial: string): string => {
};

export const converterSufixoDosRotulos = (texto: string): string => {
const regexRotulo = /^((?:(?:art\.?|§|par[aá]grafo [uú]nico)\s*\d+)|(?:[IVXMDC]{1,3}|[a-z]{1,2}|\d{1,3}))-(\d+)/gim;
const regexRotulo = /^((?:(?:art\.?|§|par[aá]grafo [uú]nico)\s*\d+º?)|(?:[IVXMDC]{1,3}|[a-z]{1,2}|\d{1,3}))-(\d+)/gim;

const fnSubstituicao = (match: string, grupo1: string, grupo2: string): string => {
const numero = parseInt(grupo2);
Expand Down

0 comments on commit ef459c2

Please sign in to comment.