HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/faker/utils/__pycache__/text.cpython-310.pyc
o

(we�	@s�UddlZddlZddlmZejdejd�Zeed<ejdejd�Zeed<ejdejd�Z	eed	<dde
ded
ede
fdd�ZdS)�N)�Patternz[^\w\s-])�flags�_re_patternz
[^\.\w\s-]�_re_pattern_allow_dotsz[-\s]+�
_re_spacesF�value�
allow_dots�
allow_unicode�returncCs~|rtnt}t|�}|r"t�d|�}|�d|�����}t�d|�St�d|��	dd��
d�}|�d|�����}t�d|�S)z�
    Converts to lowercase, removes non-word characters (alphanumerics and
    underscores) and converts spaces to hyphens. Also strips leading and
    trailing whitespace. Modified to optionally allow dots.

    Adapted from Django 1.9
    �NFKC��-�NFKD�ascii�ignore)rr�str�unicodedata�	normalize�sub�strip�lowerr�encode�decode)rrr	�pattern�r�I/home/arjun/projects/env/lib/python3.10/site-packages/faker/utils/text.py�slugifysr)FF)
�rer�typingr�compile�Ur�__annotations__rrr�boolrrrrr�<module>s